Context-oriented Programming

نویسندگان

  • Robert Hirschfeld
  • Pascal Costanza
  • Oscar Nierstrasz
چکیده

Context-dependent behavior is becoming increasingly important for a wide range of application domains, from pervasive computing to common business applications. Unfortunately, mainstream programming languages do not provide mechanisms that enable software entities to adapt their behavior dynamically to the current execution context. This leads developers to adopt convoluted designs to achieve the necessary runtime flexibility. We propose a new programming technique called Context-oriented Programming (COP) which addresses this problem. COP treats context explicitly, and provides mechanisms to dynamically adapt behavior in reaction to changes in context, even after system deployment at runtime. In this paper, we lay the foundations of COP, show how dynamic layer activation enables multi-dimensional dispatch, illustrate the application of COP by examples in several language extensions, and demonstrate that COP is largely independent of other commitments to programming style.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Demand-oriented timetable design for urban rail transit under stochastic demand

In the context of public transportation system, improving the service quality and robustness through minimizing the average passengers waiting time is a real challenge. This study provides robust stochastic programming models for train timetabling problem in urban rail transit systems. The objective is minimization of the weighted summation of the expected cost of passenger waiting time, its va...

متن کامل

CONTEXT- ORIENTED ARCHITECTURAL CONSIDERATIONS IN CHAHAR BAGH ABBASI STREET IN ESFAHAN

The view at the apparent composition of the streets of a city is the first visual perception of each person from that city. Charbagh Abbasi Street is a valuable centerpiece in identity of Isfahan as a historical city. Over time, due to body wear and erosion and unplanned renovations, some significant changes have been made in the physical form of this axis, and the identity aspects of the Chaha...

متن کامل

A Context-Oriented Extension of F#

Context-Oriented programming languages provide us with primitive constructs to adapt program behaviour depending on the evolution of their operational environment, namely the context. In previous work we proposed MLCoDa, a context-oriented language with two-components: a declarative constituent for programming the context and a functional one for computing. This paper describes the implementati...

متن کامل

Explicit Language and Infrastructure Support for Context-aware Services

Dealing with context information is an important concern for mobile service computing. However, modern frameworks and programming languages do not directly support context-dependent behavior with first class entities. In this paper, we present Context-oriented Programming for mobile applications and provide an overview of our context-oriented extension to the Java programming language.

متن کامل

Aspect-oriented Programming versus Reeection: a Rst Draft

Reeection has a long history of dealing about some aspects of software components. In this short position paper, we compare and contrast reeection and aspect-oriented programming. Whilst reeection has recently focused on very speciic aspects of software components, namely implemen-tational usually segregated among structural (representation) and behavioral (execution) aspects, aspect-oriented p...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:
  • Journal of Object Technology

دوره 7  شماره 

صفحات  -

تاریخ انتشار 2008